package com.cxyd.common.constant;

public class WcsConstants {
    public static final Long WCS_USER_ID = 1001L;
    public static final String WCS_USER_NAME = "WCS";

    public static final Long MES_USER_ID = 1003L;
    public static final String MES_USER_NAME = "MES";

    public static final Long RCS_USER_ID = 1005L;
    public static final String RCS_USER_NAME = "RCS";
    /**
     * 任务类型(下料)
     */
    public static final String TRK_TYPE_IN = "01";
    /**
     * 任务类型(上料)
     */
    public static final String TRK_TYPE_OT = "02";
    public static final String TRK_TYPE_MV = "03";

    public static final String TRK_IS_EMPTY="1";
    public static final String TRK_IS_FULL="2";

    /**
     * 中车的缓存区域
     */
    public static final String CACHE_POSITION = "L4_C";

    public static final String TRK_DVC_NO_HK = "HK_AGV";
    public static final String TRK_DVC_NO_YF = "YF_AGV";

    public static final String STATION_TYPE_HW = "HW";
    public static final String STATION_TYPE_ST = "ST";

    /**
     * 线体上料箱最大容量
     */
    public static final Integer CV_MAX_VOLUME = 6;
    /**
     * 任务优先级默认
     */
    public static final String TRK_PRTY_DEF = "1";
    /**
     * 初始
     */
    public static final int RECEIVE_TASK_START = 0;
    /**
     * 执行中
     */
    public static final int RECEIVE_TASK_RUNNING = 1;
    /**
     * 任务完成
     */
    public static final int RECEIVE_TASK_DONE = 2;
    public static final int RECEIVE_TASK_ERROR = 9;
    public static final int RECEIVE_TASK_CANCEL = 4;

    /**
     * 初始
     */
    public static final int TRK_STATUS_START = 0;
    /**
     * 执行中
     */
    public static final int TRK_STATUS_RUNNING = 1;
    /**
     * 任务完成
     */
    public static final int TRK_STATUS_DONE = 2;

    /**
     * 异常
     */
    public static final int TRK_STATUS_ERROR = 9;
    public static final int TRK_STATUS_CANCEL = 4;

    public static final String POST_TYPE_NOTICE = "1";
    public static final String POST_TYPE_DONE = "2";
    /**
     * 初始
     */
    public static final int POST_STATUS_START = 0;
    /**
     * 初始
     */
    public static final int POST_STATUS_PUSH = 1;
    /**
     * 取
     */
    public static final int POST_STATUS_SUCCESS = 2;

    /**
     * 异常
     */
    public static final int POST_STATUS_ERROR = 9;

    public static final String PROC_CODE_SUCCESS = "0";
    public static final String PROC_CODE_ERROR = "500";
    public static final String PROC_MSG_SUCCESS = "success";

    /**
     * 手动取消任务
     */
    public static final String TASK_MANUAL_CANCEL_OPERATE = "CANCEL";
    /**
     * 手动删除任务
     */
    public static final String TASK_MANUAL_DELETE_OPERATE = "DELETE";
    /**
     * 手动完成任务
     */
    public static final String TASK_FORCE_DONE_OPERATE = "DONE";
    /**
     * 手动重发任务
     */
    public static final String TASK_FORCE_REPEAT_OPERATE = "REPEAT";
    public static final String TASK_FORCE_REPEAT_CONTINUE = "CONTINUE";

    //    TCP_MSG合集
    public static final String TCP_MSG_ARRIVED = "$$Arrived%%";
    public static final String TCP_MSG_START_UNLOAD = "$$StartUnloading%%";
    public static final String TCP_MSG_LEAVE_REQUEST = "$$LeaveRequest%%";
    public static final String TCP_MSG_FINISHED = "$$Finished%%";
    public static final String TCP_MSG_LOAD_DONE = "$$LoadDone%%";

    public static final String TCP_RESPONSE_UNLOAD_REQUEST = "$$EnterPermit%%";
    public static final String TCP_RESPONSE_UNLOAD_ARRIVED = "$$UnloadPermit%%";
    public static final String TCP_RESPONSE_START_UNLOADING = "$$Unloaddone%%";
    public static final String TCP_RESPONSE_LEAVE_REQUEST = "$$LeavePermit%%";

    public static final String TCP_RESPONSE_LOAD_REQUEST = "$$EnterPermit%%";
    public static final String TCP_RESPONSE_LOAD_ARRIVED = "$$LoadPermit%%";
    public static final String TCP_RESPONSE_LOAD_DONE = "$$LeavePermit%%";

    public static final String TCP_RESPONSE_FINISHED = "$$Finished%%";
}
